

#import <Foundation/Foundation.h>

@interface APGCDTimer : NSObject
/**
 *@description 倒计时
 *@param timeInterval 倒计时秒数
 */
- (void)startTimerWithTimeInterval:(NSTimeInterval)timeInterval
                      eventHandler:(void (^)(NSTimeInterval seconds))eventHandler;
/**
 *@description 每秒执行一次
 */
- (void)startTimerWithEventHandler:(void (^)(void))eventHandler;
/**
 *@description 几秒执行一次
 *@param timeInterval 时间间隔
 */
- (void)startTimerWithEventHandlerTimeInterval:(NSTimeInterval)timeInterval
                                  eventHandler:(void (^)(void))eventHandler;
- (void)stopTimer;
@end
